<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [12, 23, [34, 45]];

        var [a, b,[c, d]] = arr;
        console.log(a,b,c,d);

        var obj = {
            name:"lisa",
            age:18
        }

        var {name, age} = obj;
        console.log(name,age);

        //扩展符合...

        arr = [1, 2, 3, 4];
        var arr = [...arr,5,6,7];
        console.log(arr1);

        var obj1 = {
            ...obj,
            phone:1321321321,
        }
        console.log(obj1);
    </script>
</body>
</html>